#define _CRT_SECURE_NO_WARNINGS 1
#include "my_string.h"

using namespace std;

int main()
{
	char str[] = "asd";
	cout << str << endl;
	jt::string s1("asd");
	cout << s1 << endl;
	s1 += "123";
	cout << s1 << endl;
	jt::string s2;
	cin >> s2;
	cout << s2 << endl;
	s2.resize(10, '9');
	cout << s2 << endl;
	for (auto p = s2.begin(); p != s2.end(); p++)
	{
		cout << *p << ' ';
	}
	cout << endl;
	cout << s2.find("asd") << endl;
	cout << s2.insert(1, 'b') << endl;
	cout << s2.erase(2, 2);
	return 0;
}